package com.pe.pgn.clubpgn.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pe.pgn.clubpgn.dao.VehiculoDao;
import com.pe.pgn.clubpgn.domain.ClpbVehiculo;
import com.pe.pgn.clubpgn.service.VehiculoService;

@Service
@SuppressWarnings("unchecked")
public class VehiculoServiceImpl extends GenericManagerImpl<ClpbVehiculo, Long>
implements VehiculoService{

	@Autowired
	private VehiculoDao vehiculoDao;

	public List<ClpbVehiculo> obtenerVehiculos() {
		return vehiculoDao.obtenerVehiculos();
	}

	public List<ClpbVehiculo> buscarVehiculos(ClpbVehiculo bnvehiculo) {
		return vehiculoDao.buscarVehiculos(bnvehiculo);
	}

	public ClpbVehiculo obtenerVehiculo(Long id) {
		return vehiculoDao.obtenerVehiculo(id);
	}

	public Map eliminarVehiculo(Long id) {
		return vehiculoDao.eliminarVehiculo(id);		
	}

	public Map guardarVehiculo(ClpbVehiculo bnvehiculo) {
		return vehiculoDao.guardarVehiculo(bnvehiculo);		
	}
}
